Parameters, Local Variables, and Overloading: Parameters, Local Variables, and Overloading 您所在的位置:网站首页 formal parameter list Parameters, Local Variables, and Overloading: Parameters, Local Variables, and Overloading

Parameters, Local Variables, and Overloading: Parameters, Local Variables, and Overloading

#Parameters, Local Variables, and Overloading: Parameters, Local Variables, and Overloading | 来源: 网络整理| 查看: 265

This chapter reviews method parameters and local variables, as well as method overloading and method signature.

Method overloading means two or more methods have the same name but have different parameter lists: either a different number of parameters or different types of parameters. When a method is called, the corresponding method is invoked by matching the arguments in the call to the parameter lists of the methods. The name together with the number and types of a method's parameter list is called the signature of a method. The return type itself is not part of the signature of a method.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有